#include "baseserver.h"
#include <QDebug>

BaseServer::BaseServer(QObject *parent) :
    QTcpServer(parent)
{
    manager = new ConnectionManager(this);
}

BaseServer::~BaseServer()
{
    if(manager) delete manager;
}

void BaseServer::incomingConnection(int sockDescriptor)
{
    qDebug() << "incoming connection with handle:" << sockDescriptor;
    manager->addConnection(sockDescriptor);
}

void BaseServer::read()
{

}

